package written_examination;
import java.util.*;

public class Main_11_21_2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextLine()){
            String first = scanner.nextLine();
            String second = scanner.nextLine();
            //先将两个字符串，转换字符数组
            String[] str = first.split("");
            StringBuffer sb = new StringBuffer();
            for(int i = 0;i < str.length;i++){
                if(!second.contains(str[i])){
                    sb.append(str[i]);
                }
            }
            System.out.println(sb.toString());
        }

    }
}
